<template>
	<view class="content">

		<!-- header -->
		<view class="box-bg">
			<uni-nav-bar right-icon="notification" title="MakeUp" :border="false" />
		</view>

		<!-- input -->
		<view class='inp'>
			<uni-icons class="icons" type="search" size="18"></uni-icons>
			<input type="text" placeholder='折扣直降狂欢' placeholder-style="font-size:12px;">
			<button class="btn" type="primary" size='mini'>搜索</button>
		</view>

		<!-- scoll -->
		<uni-section class="section" type="line">
			<uni-breadcrumb separator=" ">
				<uni-breadcrumb-item class="section-list" v-for="(route,index) in routes" :key="index" :to="route.to">
					{{route.name}}
				</uni-breadcrumb-item>
			</uni-breadcrumb>
		</uni-section>

		<!-- 轮播图 -->

		<swiper class="swiper" :indicator-dots="true" :autoplay="true" :interval="3000" :duration="1000">
			<swiper-item>
				<view class="swiper-item">
					<image src="../../static/image/fr-hero-1-miumiu1677682002206.webp" mode="widthFix"></image>
				</view>
			</swiper-item>
			<swiper-item>
				<view class="swiper-item">
					<image src="../../static/image/fr-hero-2-chloe1677682084581.webp" mode="widthFix"></image>
				</view>
			</swiper-item>
			<swiper-item>
				<view class="swiper-item">
					<image src="../../static/image/fr-hero-3-ysl1677682191731.webp" mode="widthFix"></image>
				</view>

			</swiper-item>
		</swiper>

		<!-- 轮播图底部框 -->
		<view class="text-bot">
			<view class="bot_2">
				<text>Hi&nbsp; &nbsp;188****9971</text>
			</view>
		</view>


		<!-- 图片卡片 -->
		<view class="section_card" padding="0px">
			<image src="../../static/image/750-3501670416886450.webp"></image>
			<view>
				<text>魂牵梦绕 小众香氛</text>
			</view>
		</view>


	</view>
</template>

<script>
	export default {
		data() {
			return {
				routes: [{
						to: "/pages/index/index",
						name: "精选",
					},
					{
						to: "/pages/skincare/skincare",
						name: "护肤",
					},
					{
						to: "/pages/makeup/makeup",
						name: "彩妆",
					},
					{
						to: "/pages/toilet/toilet",
						name: "香水",
					},
					{
						to: "/pages/minority/minority",
						name: "小众",
					},
					{
						to: "/pages/man/man",
						name: "男士",
					},
				],
			}
		},
		methods: {

		}
	}
</script>

<style scoped lang='scss'>
	/* 一楼导航栏 */
	.box-bg {
		margin: 0 auto;

		uni-nav-bar {}
	}

	/* 二楼搜索框 */
	.inp {
		/* width: 750rpx; */
		margin: 0 auto;
		align-items: center;
		position: relative;

		.icons {
			position: absolute;
			left: 10rpx;
		}

		input {
			background-color: $uni-bg-color-grey;
			width: 600rpx;
			height: 60rpx;
			padding-left: 50rpx;
			margin: 0 auto;
			border-radius: 20rpx;
		}

		.btn {
			position: absolute;
			right: 0rpx;
			width: 140rpx;
			flex-direction: row;
			height: 60rpx;
			background-color: black;
			line-height: 60rpx;
		}
	}

	/* 三楼 分类列表 */
	.section {
		width: 600rpx;
		margin: 0 auto;
		/* text-align: center; */
		margin-top: 20rpx;

		.section-list {
			padding-left: 10rpx;
		}
	}

	/* 四楼轮播图 */
	.swiper {
		width: 600rpx;
		height: 550rpx;
		margin: 0 auto;

		.swiper-item {
			margin-top: 30rpx;
		}

		::v-deep .uni-swiper-dots-horizontal {
			bottom: 50rpx;
		}
	}

	/* 五楼轮播图底部文字 */
	.text-bot {
		width: 550rpx;
		border-radius: 15rpx;
		height: 80rpx;
		line-height: 80rpx;
		margin: 0 auto;
		position: relative;

		.bot_2 {
			margin: 0 auto;
			background-color: $uni-bg-color-grey;
			width: 100%;
			justify-content: center;
			position: absolute;
			bottom: 40rpx;
			border-radius: 15rpx;

			text {
				font-size: $uni-font-size-base;
				font-weight: bold;
			}
		}
	}

	/* 六楼卡片 */
	.section_card {
		display: flex;
		flex-direction: column;
		width: 600rpx;
		height: 600rpx;
		margin: 0 auto;
		background-color: #f8f8f8;
		border-radius: 15rpx;
		overflow: hidden;
		box-shadow: 0 0 0 0.5;

		image {
			width: 100%;
			border-top-left-radius: 15rpx;
			border-top-right-radius: 15rpx;
		}

		view {

			text {
				text-align: center;
				font-weight: bold;
				font-size: 20px;
				padding: 15px 0 0 15px;
			}
		}

	}
</style>
